Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Thu, 6 Feb 2025 19:02:48 +0000 (20:02 +0100)
committerAbou Al Montacir <abou.almontacir@sfr.fr>
Thu, 6 Feb 2025 19:02:48 +0000 (20:02 +0100)
commit86ded55caa9bf86e34a2822f0cbb641097d711ac
tree06b537db4cec4e085f120cc9501c08ddf4b1ce19
parent94efe3774db6a0762c8c0eea513b7503176d9ca7
Reproducible builds requires that the build time stamp is not

recorded in binaries. In FPC they are fuild in via the $INCLUDE %DATE%
directive which calls getdatestr in globals.pas. To allow reproducible builds
we should honor the SOURCE_DATE_EPOCH environment variable. To not depend on
the dateutil unit, we include the required code from that package here.

Gbp-Pq: Name honor_SOURCE_DATE_EPOCH_in_date.patch
fpcsrc/compiler/globals.pas